Optimal. Leaf size=43 \[ \frac{a \tanh ^{-1}\left (\frac{\sqrt{c+\frac{d}{x^2}}}{\sqrt{c}}\right )}{\sqrt{c}}-\frac{b \sqrt{c+\frac{d}{x^2}}}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.033241, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {446, 80, 63, 208} \[ \frac{a \tanh ^{-1}\left (\frac{\sqrt{c+\frac{d}{x^2}}}{\sqrt{c}}\right )}{\sqrt{c}}-\frac{b \sqrt{c+\frac{d}{x^2}}}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 446
Rule 80
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{a+\frac{b}{x^2}}{\sqrt{c+\frac{d}{x^2}} x} \, dx &=-\left (\frac{1}{2} \operatorname{Subst}\left (\int \frac{a+b x}{x \sqrt{c+d x}} \, dx,x,\frac{1}{x^2}\right )\right )\\ &=-\frac{b \sqrt{c+\frac{d}{x^2}}}{d}-\frac{1}{2} a \operatorname{Subst}\left (\int \frac{1}{x \sqrt{c+d x}} \, dx,x,\frac{1}{x^2}\right )\\ &=-\frac{b \sqrt{c+\frac{d}{x^2}}}{d}-\frac{a \operatorname{Subst}\left (\int \frac{1}{-\frac{c}{d}+\frac{x^2}{d}} \, dx,x,\sqrt{c+\frac{d}{x^2}}\right )}{d}\\ &=-\frac{b \sqrt{c+\frac{d}{x^2}}}{d}+\frac{a \tanh ^{-1}\left (\frac{\sqrt{c+\frac{d}{x^2}}}{\sqrt{c}}\right )}{\sqrt{c}}\\ \end{align*}
Mathematica [A] time = 0.0285701, size = 73, normalized size = 1.7 \[ \frac{a d x \sqrt{c x^2+d} \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{c x^2+d}}\right )-b \sqrt{c} \left (c x^2+d\right )}{\sqrt{c} d x^2 \sqrt{c+\frac{d}{x^2}}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.009, size = 69, normalized size = 1.6 \begin{align*}{\frac{1}{{x}^{2}d}\sqrt{c{x}^{2}+d} \left ( a\ln \left ( \sqrt{c}x+\sqrt{c{x}^{2}+d} \right ) xd-b\sqrt{c{x}^{2}+d}\sqrt{c} \right ){\frac{1}{\sqrt{{\frac{c{x}^{2}+d}{{x}^{2}}}}}}{\frac{1}{\sqrt{c}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.37018, size = 298, normalized size = 6.93 \begin{align*} \left [\frac{a \sqrt{c} d \log \left (-2 \, c x^{2} - 2 \, \sqrt{c} x^{2} \sqrt{\frac{c x^{2} + d}{x^{2}}} - d\right ) - 2 \, b c \sqrt{\frac{c x^{2} + d}{x^{2}}}}{2 \, c d}, -\frac{a \sqrt{-c} d \arctan \left (\frac{\sqrt{-c} x^{2} \sqrt{\frac{c x^{2} + d}{x^{2}}}}{c x^{2} + d}\right ) + b c \sqrt{\frac{c x^{2} + d}{x^{2}}}}{c d}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 14.1264, size = 63, normalized size = 1.47 \begin{align*} - \frac{a \operatorname{atan}{\left (\frac{1}{\sqrt{- \frac{1}{c}} \sqrt{c + \frac{d}{x^{2}}}} \right )}}{c \sqrt{- \frac{1}{c}}} + \frac{b \left (\begin{cases} - \frac{1}{\sqrt{c} x^{2}} & \text{for}\: d = 0 \\- \frac{2 \sqrt{c + \frac{d}{x^{2}}}}{d} & \text{otherwise} \end{cases}\right )}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a + \frac{b}{x^{2}}}{\sqrt{c + \frac{d}{x^{2}}} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]